package com.rocketmq.temp1.consumer;

import com.rocketmq.temp1.dto.MemberDto;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(topic = "sm-platform-topic", consumerGroup = "sm-platform-consumer")
public class MemberConsumer implements RocketMQListener<MemberDto> {
    @Override
    public void onMessage(MemberDto memberDto) {
        System.out.println(memberDto.toString());
    }
}
